package diff.viewer;

import diff.Difference;

/**
 * @author WL
 */
public class DecoratedDifference {
    private final Difference    diff;
    public int         topLeft;            // top line in the left pane
    public int         bottomLeft = -1;    // bottom line in the left pane, -1 for ADDs
    public int         topRight;
    public int         bottomRight = -1;   // bottom line in the right pane, -1 for DELETEs
    public boolean     floodFill;          // should the whole difference be highlighted

    public DecoratedDifference(Difference difference) {
        diff = difference;
    }
    public Difference getDiff() {
        return diff;
    }

    public int getTopLeft() {
        return topLeft;
    }

    public int getBottomLeft() {
        return bottomLeft;
    }

    public int getTopRight() {
        return topRight;
    }

    public int getBottomRight() {
        return bottomRight;
    }

    public boolean isFloodFill() {
        return floodFill;
    }
}